import request from '@/utils/request'

export function getOrderList(data) {
  return request({
    url: '/order/info/list',
    method: 'post',
    data
  })
}

export function getOrderDetail(orderNum) {
  return request({
    url: '/order/info/getOrderDetail/' + orderNum,
    method: 'get'
  })
}

export function delOrder(orderNum) {
  return request({
    url: '/order/info/delOrder/' + orderNum,
    method: 'get'
  })
}

export function updateOrderInfo(data) {
  return request({
    url: '/order/info/updateOrder',
    method: 'post',
    data
  })
}
